#Include <FindText>

t1:=A_TickCount, Text:=X:=Y:=""
; 买入交易查找
Text:="|<>*191$55.TzUk020Dz00k800U40VWE20zznzk901U12108kU0k1VUzw4k0w1ksA0zzkG1Am7zU80EU2EAmED0MM0kAm88kM40w0nAM4M1VnVX6k1M0T0C6SU"
; 卖出交易查找
;Text:="|<>*184$54.0U0M060TyTz4Mk20E20U4MnzyTyzzYMkEUE2017zkkETyDH0Mlks40MEAMGMYDz6kAME90n9zzgME71aN1kAMED0Al7CDzksklXs1U0H0C6SU"

ok:=FindText(&X:="wait", &Y:=3, 0,0,0,0,0,0,Text)  ; 等待3秒等图像出现

if ( IsNumber(X) and IsNumber(Y) ) {
    X := Number(X)
    Y := Number(Y)
    if ( X > 0 and Y > 0 ) {
        MsgBox   "找到了"
    } else {
        MsgBox "not found"
    }
} else {
    MsgBox X . ',' . Y . "  Invalid input: X or Y is not a number"
}


handle := WinExist("东方财富终端")
if handle {
    WinActivate(handle)
;    MsgBox "OK" . handle
    Click X , Y, "Right"
}